package cn.bdqn.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.bdqn.entity.Opinion;
import cn.bdqn.entity.UsersAndOpinion;

public interface OpinionMapper {
	Integer saveOpinion(Opinion opinion);
	List<UsersAndOpinion> queryAllOpinion(@Param("userid")Integer userid);
	Integer deleteOpinionById(@Param("opinionid")Integer opinionid);
	List<UsersAndOpinion> queryAllOpinionByguanli(@Param("context")String context,@Param("start")Integer start,@Param("pageSize")Integer pageSize);
	Integer queryCountOpinion(@Param("context")String context);
	//通过
	Integer updateOpinionStatus(Opinion opinion);
	//查看详情
	UsersAndOpinion queryOpinionByOpinionid(@Param("opinionid")Integer opinionid);
	Integer deleteOpinionByUserid(@Param("userid")Integer userid);
}
